package org.ticketing.model;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

@Entity
@Table(name = "theatres")
public class MovieTheatre {
	
	// Check constraints/annotations
	
	@Id
	@NotNull
	private String theatreName;
	
	@NotNull
	private int numSeats;
	
	public MovieTheatre() {
	}
	
	public MovieTheatre(String theatreName, int numSeats) {
		this.theatreName = theatreName;
		this.numSeats = numSeats;
	}
	
	public String getTheatreName() {
		return theatreName;
	}
	
	public void setTheatreName(String theatreName) {
		this.theatreName = theatreName;
	}
	
	public int getNumSeats() {
		return numSeats;
	}
	
	public void setNumSeats(int numSeats) {
		this.numSeats = numSeats;
	}

}